package util;

import java.io.File;


public class DirectoryService {
	public static File dir;
	
	public DirectoryService(String sDir) {
		dir = new File(sDir); // path to html files
	}
	
	// returns null if directory is empty
	public String[] listFiles() {
	    String[] children = dir.list();
	    
	    if (children == null) {
	        System.out.println("does not exist or is not a directory");
	        children = null;
	      } 
	    return children;
	}
}
